package fr.neyb.bernouilli.problem020;

import java.io.Reader;
import java.io.StringReader;


public class Entry {

	public static void main(String... args) throws Exception {
		Simplifier s = new Simplifier(100);
		Reader r = new StringReader(s.getmult().toString());

		int sum = 0;
		int cIndex;

		while ((cIndex = r.read()) >= 0) {
			sum += Integer.parseInt(new String(new char[] { (char) cIndex }));
		}
		System.out.println(s.getmult().toString());
		System.out.println(sum);
	}

}
